<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="../static/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
    <link href="../static/css/sb-admin-2.min.css" rel="stylesheet">
    <script src="../static/js/jquery-3.7.1.js"></script>
    <script src="../static/bootstrap/js/bootstrap.bundle.min.js"></script>
    <script src="../static/js/sb-admin-2.min.js"></script>
</head>
<body>
<div>
{% if request.authenticated_userid %}
    {{request.authenticated_userid}}
{% else %}
    未登录
{% endif %}
</div>

<a class="dropdown-item" href="#" data-toggle="modal" data-target="#logoutModal">
    <i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
    退出
</a>
{% block main %}

{% endblock %}
<div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
     aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">确认退出?</h5>
                <button class="close" type="button" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
            </div>
            <div class="modal-body">确认要退出.</div>
            <div class="modal-footer">
                <button class="btn btn-secondary" type="button" data-dismiss="modal">取消</button>
                <a class="btn btn-primary" href="/logout">确认</a>
            </div>
        </div>
    </div>
</div>
</body>

</html>
